#include "stdafx.hpp"

#ifdef _WIN32
int __stdcall WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow)
#elif
int main()
#endif
{
	Control::Ptr control(new Control());
	control->setWidth(20);
	int width = control->getWidth();
	control->setHeight(30);
	int height = control->getHeight();

	Control::Ptr control2(new Control(control));
	width = control2->getWidth();

	Label::Ptr label(new Label("zz", control2));
	std::string text = label->getText();

	sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
    sf::CircleShape shape(100.f, 10000);
    shape.setFillColor(sf::Color::Green);

    while (window.isOpen())
    {
        sf::Event event;
        while (window.pollEvent(event))
        {
            if (event.type == sf::Event::Closed)
                window.close();
        }

        window.clear();
        window.draw(shape, sf::RenderStates::Default);
        window.display();
    }

	return 0;
}